<?php


			
			if($_REQUEST['from']=="view"){//pinakauna
				echo "<div id=\"vHead\">";
				echo "	<span id=\"viewHeader\">CLIENT INFORMATION | ".$_REQUEST['client']."</span>";
				echo "</div>";
				echo "<div id=\"vBody\">";
				echo "		<input type=\"hidden\" id=\"clientValue\" value=\"".$_REQUEST['client']."\" />";
				echo "		<input type=\"button\" value=\"Edit\" onclick=\"editClientForm('editClient');\">";
			}
			elseif($_REQUEST['from']=="confirm"){
				echo "<div id=\"vHead\">";
				echo "	<span id=\"viewHeader\">CLIENT INFORMATION | ".$_REQUEST['client']."</span>";
				echo "</div>";
				echo "<div id=\"vBody\">";
				echo "<input type=\"hidden\" id=\"clientValue\" value=\"".$_REQUEST['client']."\" >";
				echo "<input type=\"hidden\" id=\"companyOrig\" value=\"".$_REQUEST['companyOrig']."\" >";
				echo "<input type=\"hidden\" id=\"addressOrig\" value=\"".$_REQUEST['addressOrig']."\" >";
				echo "<input type=\"hidden\" id=\"cellNoOrig\" value=\"".$_REQUEST['cellNoOrig']."\" >";
				echo "<input type=\"hidden\" id=\"telNoOrig\" value=\"".$_REQUEST['telNoOrig']."\" >";
				echo "<input type=\"hidden\" id=\"faxNoOrig\" value=\"".$_REQUEST['faxNoOrig']."\" >";
				echo "<input type=\"hidden\" id=\"emailAddOrig\" value=\"".$_REQUEST['emailAddOrig']."\" >";		
				
				
				if($_REQUEST['flag']=="add"){
				echo "Are you sure you want to add this client?<br />";
				echo "<input type='button' value='Yes' id='buttonConfirm' onclick=\"addNewClient('confirm');return false;\" />";
				echo "<input type='button' value='Edit' id='buttonEdit' onclick=\"addClient('edit');return false;\" />";
				echo "<input type='button' value='Cancel' id='buttonCancel' onclick=\"cancel('add');return false;\" />";
				}
				else{
				echo "Are you sure you want to edit this client?<br />";
				echo "<input type='button' value='Yes' id='buttonConfirm' onclick=\"editSelectedClient('confirm');return false;\" />";
				echo "<input type='button' value='Edit' id='buttonEdit' onclick=\"editClientForm('none');return false;\" />";
				echo "<input type='button' value='Cancel' id='buttonCancel' onclick=\"cancel('client');return false;\" />";
				}
			}			
			echo "		<div id=\"viewCompany\">";
			echo "			<div id=\"company_l\">";
			echo "				Company";
			echo "			</div>";
			echo "			<div id=\"company_i\">";
			echo 				$_REQUEST['company']."<input type=\"hidden\" id=\"companyValue\" value=\"".$_REQUEST['company']."\" />";
			echo "			</div>";
			echo "		</div>";
			echo "		<div id=\"viewAddress\">";
			echo "			<div id=\"address_l\">";
			echo "			Address";
			echo "			</div>";
			echo "			<div id=\"address_i\">";
			echo 				$_REQUEST['address']."<input type=\"hidden\" id=\"addressValue\" value=\"".$_REQUEST['address']."\">";
			echo "			</div>";
			echo "		</div>";			
			echo "		<div id=\"viewEmailAdd\">";
			echo "			<div id=\"emailAdd_l\">";
			echo "			Email Add.";
			echo "			</div>";
			echo "			<div id=\"emailadd_i\">";
			echo 				$_REQUEST['emailAdd']."<input type=\"hidden\" id=\"emailAddValue\" value=\"".$_REQUEST['emailAdd']."\">";
			echo "			</div>";
			echo "		</div>";
			echo "		<div id=\"viewCellNo\">";
			echo "			<div id=\"cellNo_l\">";
			echo "			Cell. Number";
			echo "			</div>";
			echo "			<div id=\"cellNo_i\">";
			echo 				$_REQUEST['cellNo']."<input type=\"hidden\" id=\"cellNoValue\" value=\"".$_REQUEST['cellNo']."\">";
			echo "			</div>";
			echo "		</div>";
			echo "		<div id=\"viewTelNo\">";
			echo "			<div id=\"telNo_l\">";
			echo "			Tel. Number";
			echo "			</div>";
			echo "			<div id=\"telNo_i\">";
			echo 				$_REQUEST['telNo']."<input type=\"hidden\" id=\"telNoValue\" value=\"".$_REQUEST['telNo']."\">";
			echo "			</div>";
			echo "		</div>";
			echo "		<div id=\"viewFaxNo\">";
			echo "			<div id=\"faxNo_l\">";
			echo "			Fax Number";
			echo "			</div>";
			echo "			<div id=\"faxNo_i\">";
			echo 				$_REQUEST['faxNo']."<input type=\"hidden\" id=\"faxNoValue\" value=\"".$_REQUEST['faxNo']."\">";
			echo "			</div>";
			echo "		</div>";
			echo "</div>";
			
			echo "<div id=\"vLower\">";
			echo "</div>";
			
?>